package com.taotao.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.taotao.web.service.IndexService;

@Controller
public class IndexController {
	
	@Autowired
	private IndexService indexService;
	
	@RequestMapping(value="index",method=RequestMethod.GET)
	public  ModelAndView GoIndex() {
		ModelAndView mv = new ModelAndView("index");
		String AD = this.indexService.getIndexAd1();
		//添加大广告1 
		System.out.println("****************************************"+AD);
		mv.addObject("indexAd1",AD);
		return mv;
	}
}
